//导入request.js 工具
import request from "@/utils/request";

//考试管理列表查询
export const ExamAllService = (params) =>{
    return request.get('/exam/all',{params:params});
}

//考试管理添加
export const ExamAddService = (ExamData) =>{
    return request.post('/exam/add',ExamData);
}

//考试管理删除
export const ExamDeleteService = (examId) =>{
    return request.delete('/exam/delete?examId='+examId);
}

//考试管理修改
export const ExamUpdateService = (ExamData) =>{
    return request.put('/exam/updateExamAndQuestions',ExamData);
}

//考试查询与题目查询
export const ExamFindService = (params) =>{
    return request.get('/exam/find',{params:params});
}
  //用户作业成绩分页查询 
  export const ExamUserPageService = (params) => {
    return request.get('/ExamScore/findPageAll',{params:params});
  };
  //用户作业成绩添加
  export const ExamUserAddService = (ExamData) => {
    return request.post('/ExamScore/add',ExamData);
  };
  //用户作业成绩修改
  export const ExamUserUpdateService = (ExamData) => {
    return request.put('/ExamScore/update',ExamData);
  };
  //用户作业成绩删除
  export const ExamUserDeleteService = (id) => {
    return request.delete('/ExamScore/delete?id='+id);
  };